/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define FLASH_CS_Pin GPIO_PIN_2
#define FLASH_CS_GPIO_Port GPIOE
#define SDCARD_CS_Pin GPIO_PIN_3
#define SDCARD_CS_GPIO_Port GPIOE
#define QM8_CS_Pin GPIO_PIN_4
#define QM8_CS_GPIO_Port GPIOE
#define LED_R1_Pin GPIO_PIN_1
#define LED_R1_GPIO_Port GPIOC
#define LED_G1_Pin GPIO_PIN_2
#define LED_G1_GPIO_Port GPIOC
#define LED_B1_Pin GPIO_PIN_3
#define LED_B1_GPIO_Port GPIOC
#define PWM9_Pin GPIO_PIN_0
#define PWM9_GPIO_Port GPIOA
#define PWM10_Pin GPIO_PIN_1
#define PWM10_GPIO_Port GPIOA
#define PWM11_Pin GPIO_PIN_2
#define PWM11_GPIO_Port GPIOA
#define PWM12_Pin GPIO_PIN_3
#define PWM12_GPIO_Port GPIOA
#define SCH_CS_Pin GPIO_PIN_4
#define SCH_CS_GPIO_Port GPIOA
#define BATT_CURRENT_SENS_Pin GPIO_PIN_4
#define BATT_CURRENT_SENS_GPIO_Port GPIOC
#define BATT_VOLTAGE_SENS_Pin GPIO_PIN_5
#define BATT_VOLTAGE_SENS_GPIO_Port GPIOC
#define BARO_CS_CS_Pin GPIO_PIN_2
#define BARO_CS_CS_GPIO_Port GPIOB
#define PWM1_Pin GPIO_PIN_9
#define PWM1_GPIO_Port GPIOE
#define BMIA_CS_Pin GPIO_PIN_10
#define BMIA_CS_GPIO_Port GPIOE
#define PWM2_Pin GPIO_PIN_11
#define PWM2_GPIO_Port GPIOE
#define BMIG_CS_Pin GPIO_PIN_12
#define BMIG_CS_GPIO_Port GPIOE
#define PWM3_Pin GPIO_PIN_13
#define PWM3_GPIO_Port GPIOE
#define PWM4_Pin GPIO_PIN_14
#define PWM4_GPIO_Port GPIOE
#define QMI_CS_Pin GPIO_PIN_15
#define QMI_CS_GPIO_Port GPIOE
#define I2C2_SCL_Pin GPIO_PIN_10
#define I2C2_SCL_GPIO_Port GPIOB
#define I2C2_SDA_Pin GPIO_PIN_11
#define I2C2_SDA_GPIO_Port GPIOB
#define EXT2_CS_Pin GPIO_PIN_10
#define EXT2_CS_GPIO_Port GPIOD
#define EXT1_CS_Pin GPIO_PIN_11
#define EXT1_CS_GPIO_Port GPIOD
#define PWM5_Pin GPIO_PIN_12
#define PWM5_GPIO_Port GPIOD
#define PWM6_Pin GPIO_PIN_13
#define PWM6_GPIO_Port GPIOD
#define PWM7_Pin GPIO_PIN_14
#define PWM7_GPIO_Port GPIOD
#define PWM8_Pin GPIO_PIN_15
#define PWM8_GPIO_Port GPIOD
#define RCININT_Pin GPIO_PIN_8
#define RCININT_GPIO_Port GPIOC
#define I2C3_SDA_Pin GPIO_PIN_9
#define I2C3_SDA_GPIO_Port GPIOC
#define I2C3_SCL_Pin GPIO_PIN_8
#define I2C3_SCL_GPIO_Port GPIOA
#define VBUS_Pin GPIO_PIN_15
#define VBUS_GPIO_Port GPIOA
#define I2C1_SCL_Pin GPIO_PIN_8
#define I2C1_SCL_GPIO_Port GPIOB
#define I2C1_SDA_Pin GPIO_PIN_9
#define I2C1_SDA_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
